package io.github.maojian.bit;

import org.junit.Test;

/**
 * @Auther: jian.mao
 * @Date: 2022/4/13 15:09
 * @Description: https://leetcode-cn.com/problems/add-binary/
 */
public class Q67 {
    public String addBinary(String a, String b) {
        return Integer.toBinaryString(
                Integer.parseInt(a, 2) + Integer.parseInt(b, 2)
        );
    }

    @Test
    public void test() {
        String a = "1010";
        String b = "1011";
        System.out.println(addBinary(a,b));
    }
}
